 <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<base href="<%=basePath + "admin" %>"/>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link  rel="stylesheet" type="text/css" href="assets/plugins/bootstrap/css/bootstrap.css"/>
	<link rel="stylesheet" type="text/css" href="assets/css/admin_frame.css"/>
	<script type="text/javascript" src="assets/js/jquery-1.7.2.js"></script>
	<script charset="utf-8" src="assets/plugins/kindeditor/kindeditor.js"></script>
		<script charset="utf-8" src="assets/plugins/kindeditor/lang/zh_CN.js"></script>
		<script charset="utf-8"
			src="assets/plugins/kindeditor/plugins/code/prettify.js"></script>
		<script>
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('textarea[name="detool.introduce"]', {
					resizeType : 1,
					allowPreviewEmoticons : false,
					allowImageUpload : false,
					items : [
						'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
						'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
						'insertunorderedlist', '|', 'emoticons', 'image', 'link']
				});
			});
		</script>
		<style type="text/css">
			
            textarea {
            		width:600px;
            		height:200px;
            		visibility:hidden
            	}
		</style>
	
	<script>	
function checkform(){
	
	checked=false;
	if(document.getElementById("name").value!="" && document.getElementById("introduce").value!="")
	{
		checked=true;
	}
	if (!checked){
		alert('请完整填写应用信息');
		return false;
	}
}
</script>
  </head>
  
  <body>
  		<div id="mainbox">
  		<div id="header">
  				<jsp:include page="../../Template/admin_top.jsp"></jsp:include>
  		</div>
  		<div id="content" class="well">
  				<s:form  class="well" name="form1" action="admin/detool_update" method="post" enctype="multipart/form-data">
			   		<s:textfield name="detool.name" id="name" label=" 应用标题" /><br />
			        <s:textarea name="detool.introduce" id="introduce" label=" 简介" /><br />
			        <s:hidden name="detool.dwUrl" />
			        <s:hidden name="detool.uploadtime" />
			        <s:hidden name="detool.id" />
			        <s:hidden name="detool.downloadcount" />
			        <s:submit value="修改" class="btn" onclick="return checkform()" />
				</s:form>
  		</div>
  		<div id="footer">
  			<p>java 分享平台技术中心</p>
	    	<p>© Cuit software 2012 </p>
  		</div>
  		</div>
	
  </body>
</html>
